//
//  Data.m
//  QQMV
//
//  Created by yh on 16/8/12.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "Data.h"

@implementation Data
-(void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"contents"]) {
        Contents *ct = [Contents modelWithDic:value];
        _contents_objc = ct;
    } else if ([key isEqualToString:@"mv_show_play"]) {
        NSMutableArray<Mv_show *> *mvArr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            Mv_show *mv = [Mv_show modelWithDic:dic];
            [mvArr addObject:mv];
        }
        _mv_show_playArray = mvArr;
    }
}
@end
